<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script src='./MooTools-Core-1.5.1.js' type='text/javascript'></script>
	<script src='./My.js' type='text/javascript'></script>
	<script type='text/javascript'>
		window.addEvent('domready',function(){

			var myAnchor = new Element('a', { href: 'http://mootools.net', 'class': 'myClass', html: 'Click me!', styles: { display: 'block', border: '1px solid black' }, events: { click: function(){ alert('clicked'); }, mouseover: function(){ alert('mouseovered'); } } }); // Using Selectors 
			var myNewElement = new Element('a.myClass');
			alert(myAnchor.get('html'))
		});
	</script>
</head>
<body>
			<h2 id='h'>Mootools.js</h2>	
</body>
</html>